<include file="Public:pagerForm"/>
<div class="pageHeader">
    <switch name="act">
        <case value="1">
            <form onsubmit="return navTabSearch(this);" action="__CONTROLLER__/index" method="post">
        </case>        
        <case value="2">
            <form onsubmit="return navTabSearch(this);" action="__CONTROLLER__/auditUser" method="post">
        </case>
        <case value="3">
            <form onsubmit="return navTabSearch(this);" action="__CONTROLLER__/inUser" method="post">
        </case>
    </switch>
    
	<div class="searchBar">		
            <table class="searchContent">
                <tr>
                    <td>
                        昵　称：<input type="text" name="nickName" value="<{$Think.post.nickName}>"/>
                    </td>
                    <neq name="act" value="3">
                        <td>
                            公司名：<input type="text" name="companyName" value="<{$Think.post.companyName}>"/>
                        </td>
                    </neq>
                    <td>
                        注册时间：<input type="text" name="add_time" class="date" readonly="true" value="<{$Think.post.add_time}>"/>
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                </ul>
            </div>
	</div>
    </form>
</div>
<div class="pageContent">
   <div class="panelBar">
        <ul class="toolBar">
            <switch name="act">
                <case value="1">
                    <li><a title="确实要禁用这些记录吗?" target="selectedTodo" rel="id[]" href="__CONTROLLER__/noUsers" class="delete"><span>批量禁用</span></a></li>
                    <li><a title="确实要设为待审核?" target="selectedTodo" rel="id[]" href="__CONTROLLER__/audUser" class="delete"><span>批量待审</span></a></li>
                    <!--
                    <li><a class="add" href="__CONTROLLER__/show" target="dialog" mask="true" height="600" width="700"><span>添加</span></a></li>
                    -->
                    <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="id[]" href="__CONTROLLER__/del" class="delete"><span>批量删除</span></a></li>                   
                    <li><a class="edit" href="__CONTROLLER__/show/id/{id_user}" target="dialog" mask="true" height="400" width="500"><span>修改</span></a></li>
                    <li class="line">line</li>
                </case>
                <case value="2">                    
                    <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="id[]" href="__CONTROLLER__/del" class="delete"><span>批量删除</span></a></li>
                    <li><a title="确实要审核这些记录吗?" target="selectedTodo" rel="id[]" postType="string" href="__CONTROLLER__/allEdit" class="edit"><span>批量审核</span></a></li>
                    <li><a class="add" href="__CONTROLLER__/show" target="dialog" mask="true" height="600" width="500"><span>添加</span></a></li>
                    <li><a class="edit" href="__CONTROLLER__/show/id/{id_user}" target="dialog" mask="true" height="600" width="500"><span>修改</span></a></li>
                    <li class="line">line</li>
                </case>
                <case value="3">
                    <!--
                    <li><a title="确实要禁用这些记录吗?" target="selectedTodo" rel="id[]" href="__CONTROLLER__/noUsers" class="delete"><span>批量禁用</span></a></li>
                    -->
                    <li><a class="add" href="__CONTROLLER__/show/sign/1" target="dialog" mask="true" height="400" width="500"><span>添加</span></a></li>
                    <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="id[]" href="__CONTROLLER__/del" class="delete"><span>批量删除</span></a></li>                    
                    <li><a class="edit" href="__CONTROLLER__/show/id/{id_user}/sign/1" target="dialog" mask="true" height="400" width="500"><span>修改</span></a></li>
                    <li class="line">line</li>
                </case>
                <case value="4">                    
                    <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="id[]" href="__CONTROLLER__/del" class="delete"><span>批量删除</span></a></li>
                    <!--
                    <li><a title="确实要启用这些记录吗?" target="selectedTodo" rel="id[]" postType="string" href="__CONTROLLER__/allEdit" class="edit"><span>批量启用</span></a></li>
                    -->
                    <li class="line">line</li>
                </case>
            </switch>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="138" nowrapTD="false">
       <thead>
            <tr>
                <th width="22"><input type="checkbox" group="id[]" class="checkboxCtrl"></th>
                <th width="40"  align="center">序号</th>
                <th width="200" align="center">昵称</th>
                <neq name="act" value="3">
                    <th width="100" align="center">公司名</th>                
                    <th width="100" align="center">营业执照</th>
                    <th width="100" align="center">LOGO</th>
                <else/>
                    <th width="100" align="center">头像</th>
                </neq>
                <th width="100" align="center">电话</th>
                <th width="160" align="center">地址</th>
                <th width="100" align="center">积分</th>
                <th width="130" align="center">注册时间</th>
                <th width="100" align="center">状态</th>
                <th width="110" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
            <?php $i=1;?> 
            <foreach name='userList' item="list">
            <tr target="id_user" rel="<{$list.id}>">
                <td><input name="id[]" value="<{$list.id}>" type="checkbox"></td>
                <td><{$i}></td>  
                <td><{$list.nickname}></td>
                <neq name="act" value="3">
                    <td><{$list.companyname}></td>                
                    <td class="imgs"><img src="<{$Think.const.PUBLIC_URL}>upload/<{$list.license}>" height="95px"></td>  
                    <td class="imgs"><img src="<{$Think.const.PUBLIC_URL}>upload/<{$list.icon}>" height="95px"></td>
                <else/>
                    <td class="imgs"><img src="<{$Think.const.PUBLIC_URL}>upload/<{$list.icon}>" height="95px"></td>
                </neq>
                <td><{$list.tel}></td>
                <td><{$list.regionid|getAddr}></td>
                <td><{$list.integral}></td>
                <td><{$list.add_time|substr=0,10}></td>  
                <td><{$list.state|getStatus}></td>
                <td> 
                    <a title="删除" target="ajaxTodo" href="__CONTROLLER__/del/id/<{$list.id}>" >删除 | </a>
                    <eq name="act" value="1">
                        <a title="待审" target="ajaxTodo" href="__CONTROLLER__/audUser/id/<{$list.id}>" >待审 | </a>
                    </eq>
                    <if condition="($act eq 2) or $act eq 4">
                        <a title='<eq name="act" value="2">审核<else/>启用</eq>' target="ajaxTodo" href="__CONTROLLER__/allEdit/id/<{$list.id}>">
                            <eq name="act" value="2">审核 | <else/>启用 | </eq>
                        </a>
                    </if>
                    <if condition="($act eq 1) or ($act eq 3)">
                        <a title="禁用" target="ajaxTodo" href="__CONTROLLER__/noUsers/id/<{$list.id}>" >禁用</a>
                    </if>
                </td>
            </tr>
            <?php $i++;?>
            </foreach>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<{$totalCount}>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<{$totalCount}>" numPerPage="<{$numPerPage}>" pageNumShown="6"  currentPage="<{$currentPage}>"></div>
    </div>
</div>
<style type="text/css" media="screen">
    .imgs{text-align:center;}
    .imgs div{height:100px!important;}
</style>

